home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / mpc93jun.zip / DISKCPY2.TXT < prev    next >
Text File  |  1993-05-30  |  5KB  |  82 lines

  1.                           Diskcopy, Copy and Xcopy
  2.  
  3.                 From The Fox Valley PC Association-Illinois,                     
  4.                    Fox Tales via SJIBMPCUG Bits & Bytes
  5.  
  6.      One of the things we learn almost immediately when confronted with
  7.      a computer is that there are files and we're supposed to do something
  8.      about them.  Even if we have no idea at all what they are, the reference
  9.      manual usually gets us involved with them via the install section.
  10.  
  11.      Unfortunately, most reference manuals present DISKCOPY or COPY as
  12.      the way to install program files without any explanation of whatÆs
  13.      happening in the underlying environment.
  14.  
  15.      To understand the idea of copying, we need to know that pieces of
  16.      information (files) reside in two areas of the computer system: on
  17.      the disk, as a magnetic imprint which keeps the information even when
  18.      there is no electricity, and in RAM (Random Access Memory) which is
  19.      a sort of twilight zone of computer technology and only works when
  20.      there is a supply of electricity.
  21.  
  22.      When we start a program, or retrieve a file into a word processor
  23.      or spreadsheet, the computer makes a copy of the information from
  24.      the disk and puts that copy in RAM.  There, we can manipulate and
  25.      change all sorts of things without any impact on the magnetism still
  26.      sitting on the disk -- until we save to the disk.
  27.  
  28.      So at most times, there exists a magnetic map of a program, or a 
  29.      letter we wrote, or our current checkbook.  Then if we're using the 
  30.      computer to make changes to the checkbook or letter, there exists 
  31.      also a copy of that in RAM.  Some programs write to disk immediately 
  32.      upon going to the next record (database),or check (accounting).  
  33.      Many programs wait and let us press the Save key.
  34.  
  35.      As we build more files, or install more and more programs, we realize
  36.      we need to move things around, or delete the files, or even (oddly
  37.      enough) back up our data files.  Here, once again, we come in contact
  38.      with the concept of copying files.  Drawing on our first experience,
  39.      we might assume that DISKCOPY is the way to go -- particularly if
  40.      that is what our first reference manual suggested, or we may choose
  41.      the plain COPY command.
  42.  
  43.      DISKCOPY
  44.  
  45.      DISKCOPY is designed to make an exact copy of a disk to another disk
  46.      of exactly the same type (360 to 360, 1.44 to 1.44, etc.).  It will
  47.      completely overwrite all information on the destination (target) disk
  48.      with all the information on the source disk -- including bad sectors,
  49.      [fragmentation] and other errors.
  50.      
  51.      While DISKCOPY works even on single floppy drive systems, you can't
  52.      ISKCOPY a directory to a floppy disk.  DISKCOPY is a separate program
  53.      and needs to be accessible in the path before it will work.
  54.  
  55.      COPY
  56.  
  57.      When we use DOS COPY command, DOS goes to the file we are trying to
  58.      copy; reads up to 64K of it into RAM; then writes that 64K onto the
  59.      destination disk. After that, the cycle begins again until the 
  60.      original source file is copied to the destination.  If we are 
  61.      copying a large number of files, DOS still will read only 64K, then 
  62.      write 64K, over and over.  In addition, DOS doesnÆt care at all if 
  63.      the source file is different but has the same name as what you 
  64.      designate as the destination. DOS COPY will overwrite or combine 
  65.      multiple files into a single file and never blink.  [COPY is an 
  66.      internal DOS command available as soon as COMMAND.COM is loaded].
  67.  
  68.      XCOPY
  69.  
  70.      To get around this [64K limit], if we're copying large numbers of
  71.      files or a very large single file, we have XCOPY, which came into
  72.      being with DOS 3.2.  XCOPY reads as much information into RAM as 
  73.      there is room, then writes the whole chunk to the destination.  If 
  74.      we have five files, each 80K, and there is 400K of RAM, the whole 
  75.      operation is done in one read and one write.  COPY on the other hand 
  76.      will require seven read/writes.  XCOPY will also ask us if a 
  77.      destination is a file or a directory, if we try to copy 30 files to 
  78.      a non-existent directory. [XCOPY is an external DOS program which 
  79.      needs to be accessible in the path].  Remember: if you are running 
  80.      DOS 5.0, a screenful of help is available for any DOS command simply 
  81.      by appending the /? switch.
  82.